<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Scan Admin</title>
<base href="<?php echo base_url();?>"  />
<style type="text/css">
*{
	margin:0;
	padding:0;
}
body{
	font-size:14px;
	width:1200px;
	background:url(images/cms_bg.jpg) repeat-y #F0F0F0;
	}
#left{
	width:230px;
	float:left;	
	}
#right{
	width:950px;
	float:left;
	
	margin-left:20px;
	}
a{
	color:#000;
	text-decoration:none;
	}
#left table tr td a{


}
h2{
	font-size:28px;
	margin-top:50px;
	}

#right h1{
	margin-top:80px;
	margin-left:20px;
	}
#left table{
	width:200px;
	border:0;
	border-spacing:0;
	border-collapse:collapse;
	margin:20px auto;
	
	}
#left table tr{
	height:25px;
	}
#left table td{
	text-align:left;
	border-bottom:1px solid #B7DDC8;
	}
#left table tr a{
	display:block;
	height:25px;
	padding-top:5px;
	}
.button{
	width:60px;
	background: url("images/bg-button-green.gif") repeat-x scroll left top #459300;
	border:1px solid #459300;
	height:25px;
	}
#right table{
	width:950px;
	border:0;
	border-spacing:0;
	border-collapse:collapse;
	}
#right table tr{
	height:35px;
	}
#right  table td{
	padding-left:15px;
	}
.tablestyle{
	background:#F3F3F3;
	}
.tablestyle2{
	background:#FFFFFF;
	}
</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(function(){
	$("#right table tr:nth-child(odd)").addClass("tablestyle");
	$("#right table tr:nth-child(even)").addClass("tablestyle2");
	});
function check_sc()
{
	if($("#key").val()=="")
		{
		$("#key").focus();
		return false;
		}
}
</script>
</head>
<body>
<div id="left">
	<p style="font-size:32px;font-weight:bold;margin-top:60px;margin-left:10px;">Abook Admin</p>
    
   <table>
   <tr>
   		<td style="background:#5796CC;"><?php echo anchor(site_url('scan_admin/all_books/'),'All Books','style="font-weight:bold;padding-left:15px;"')?></td>
   </tr>
	<?php foreach($category as $cat):?>
	<tr>
		<td style="background:#5796CC;"><?php echo anchor(site_url('scan_admin/select_category_list/'.$cat['cate_id']),$cat['bc'],'style="font-weight:bold;padding-left:15px;"')?></td>
	</tr>
	<?php if(isset($cat['se_cate'])):?>
	<?php foreach($cat['se_cate'] as $val):?>
	<tr>
		<td style="background:#B7DDC8;border-bottom:1px solid #5796CC">
		<?php echo anchor(site_url('scan_admin/select_category_list/'.$val['cate_id']),$val['bc'],'style="padding-left:30px;"')?>
		</td>
	</tr>
	<?php endforeach;?>
	<?php endif;?>
	<?php endforeach;?>
	</table>
  <p style="padding-left:5px;">
    <form action="<?php echo site_url('scan_admin/search_page')?>" method="post">
			<input type="text" name="key" id="key" />
			<input type="submit" name="submit" id="submit" value="Search" onclick="return check_sc()" class="button" />
	</form>
	</p>		
            <br />
			<br />
			
	<p style="text-align:right;margin-right:20px;">
		Hello, <?php echo $sign ;?>, welcome !<br />
		<?php echo anchor(site_url('welcome/destory'),'Sign Out','style="color:#FFFFFF;"')?>
    </p>
</div>
<div id="right">

